@extends('app')
@section('content')
    <h1>Articles</h1>
    <hr>
    @foreach($pages as  $i)
    <h2><a href={{action('articlesControllers@show',[$i->id])}}> {{$i->title}}</a></h2>
{{--    <h2><a href={{url('articles',$artilce->id)}}> {{$artilce->title}}</a></h2>--}}
    <article>
        <div class="body">
            {{$i->content}}
        </div>
    </article>
    @endforeach
@stop